﻿using System.Collections;

namespace winS.Unity.Process
{
    public class AllPassStep : GeneralStep
    {
        public override bool isOnlyOnceNextSteps => true;

        public int passCount;

        public override IEnumerator Execute(ProcessContext processContext)
        {
            passCount--;
            yield return new WaitUntilTrue(() => passCount < 1);
        }
    }
}